// 封装请求
import http from "@/utils/http"

/**
 * 
 * @param {Number} distribuyionSite 
 * @returns 轮播图
 */
export const getHomeBanner = (distribuyionSite=1)=>{
    return http({
        url:'/home/banner',
        data:{
            distribuyionSite
        }
    })
}
/**
 * 前台类目
 */
export const getHomeMutli= ()=>{
    return http({
        url:'/home/category/head/mutli'
    })
}   

/**
 * 人气推荐
 */
 export const getHotMutli= ()=>{
    return http({
        url:'/home/hot/mutli'
    })
}   

/**
 * 新鲜好物
 */

export const getNewMutli = (limit=4)=>{
    return http({
        url:'/home/new',
        data:limit
    })
}

/**
 * 猜你喜欢
 */

export const goodsGuessLike = (data)=>{
    return http({
        url:'/home/goods/guessLike',
        data
    })
}

export const getHomeRecommend = (url, data) => {
    return http({
        url,
        data
    })
}